<% remote_form_for @uniforme,:complete =>"$.colorbox.close()", :condition => '$(this).valid()', :html => {:class => "tabular"},  :builder => UniformBuilder do |f| %>
  <%= f.error_messages %>
  <div class="box" style="font-size: 13px; font-weight:bold">
    <%= f.hidden_field :usuario_id %>
    <%= f.text_field :tamanio ,:size=>"5",:label => "Tama&ntilde;o",:class => :required %>
  </div>
  <h4>Vestimentas</h4>
  <div class="box">
    <table class="tabla-centrada">
      <tr class="uniformes_vestimentas">
        <th>Vestimenta</th><th>Tamaño</th><th></th><th><%= button_to_add_fields "Agregar", f, :uniformes_vestimentas%></th>
      </tr>
      <% f.simple_fields_for :uniformes_vestimentas do |builder|%>
        <%= render 'uniforme_vestimenta', :f => builder  %>
      <% end %>
    </table>
  </div>
  <%= f.submit "Guardar" %>
<% end %>
<script type="text/javascript">
  $(document).ready(function () {
  $.colorbox.resize({innerHeight:"50%",innerWidth:"50%"});
  });
</script>
<%= validate_forms %>
